package com.nidu.demo.oauth2.convertor;

import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.oauth2.dto.OAuth2ApproveListQry;
import com.nidu.demo.oauth2.dto.OAuth2ApprovePageQry;
import com.nidu.demo.oauth2.dto.OAuth2ApproveQry;
import com.nidu.demo.oauth2.model.OAuth2ApproveCriteria;
import org.mapstruct.Mapper;

/**
 * OAuth2授权确认查询条件转换器
 *
 * @author nidu
 */
@Mapper(config = MapStructConfig.class)
public interface OAuth2ApproveCriteriaConvertor {

    /**
     * 单个查询条件转换
     */
    OAuth2ApproveCriteria toDataObject(OAuth2ApproveQry qry);

    /**
     * 列表查询条件转换
     */
    OAuth2ApproveCriteria toDataObject(OAuth2ApproveListQry listQry);

    /**
     * 分页查询条件转换
     */
    OAuth2ApproveCriteria toDataObject(OAuth2ApprovePageQry pageQry);
}
